package com.wxprogram.smallprogram.dao;

import com.wxprogram.smallprogram.entity.StudentSave;
import com.wxprogram.smallprogram.entity.TeacherSave;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SaveDao {
    /**
     * 学生收藏
     */
    //查询是否收藏
    int selectStudentIsSave(StudentSave studentSave);
    //添加收藏
    int insertStudentSave(StudentSave studentSave);
    //取消收藏
    int deleteStudentSave(StudentSave studentSave);
    //收藏的发布
    List<Integer> selectStudentSaveCode(String openID);

    /**
     * 研究生收藏
     */
    //查询是否收藏
    int selectTeacherIsSave(TeacherSave teacherSave);
    //添加收藏
    int insertTeacherSave(TeacherSave teacherSave);
    //取消收藏
    int deleteTeacherSave(TeacherSave teacherSave);
    //收藏的发布
    List<Integer> selectTeacherSaveCode(String openID);
}
